import { version } from "../../package.json";


// 定义action类型
type action = {
  alias: string;
  description: string;
  examples: string[];
};

// 定义命令
const actions: Record<string, action> = {
  create: {
    // 别名
    alias: "c",
    description: "create a project",
    // 示例
    examples: ["chenyx-cli create <project-name>"],
  },
  "*": {
    alias: "",
    description: "command not found",
    examples: [],
  },
};

// 导出版本和命令
export { version, actions };
